<?php

namespace frontend\modules\assist\controllers;

use Yii;
use frontend\components\Controller;

/**
 * 常见问题与帮助接口
 * 
 * @author emhome <emhome@163.com>
 * @since 1.0
 */
class HelpController extends Controller {

    /**
     * {@inheritdoc}
     */
    public $modelClass = 'frontend\modules\app\models\HelpViewSearch';

    /**
     * {@inheritdoc}
     */
    protected function verbs() {
        return [
            '*' => ['GET'],
        ];
    }

    /**
     * 问题与帮助详情
     */
    public function actions() {
        return [
            'view' => [
                'class' => 'yii\rest\ViewAction',
                'modelClass' => $this->modelClass,
            ],
        ];
    }

}
